package ${package};

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.nuoyun.pro.system.config.serializer.JsonLongSerializer;

import com.tmsps.ne4spring.annotation.NotMap;
import com.tmsps.ne4spring.annotation.PK;
import com.tmsps.ne4spring.annotation.Table;
import com.tmsps.ne4spring.orm.model.DataModel;
import lombok.Getter;
import lombok.Setter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Generated by AuxiliaryTool 
 */

@ApiModel(value="${tableName}",description="${tableName}")
@Table(TableName="${tableName}")
@Setter @Getter 
public class ${tableName} extends DataModel {

	@NotMap
	private static final long serialVersionUID = 1L;
	
	<#list columns as d>
	//${d.remark}
	<#if d.pk == d.colName>
	@PK
	@JsonProperty(value="key")
	@JsonAlias(value= {"key","${d.colName}"})
	@JsonSerialize(using = JsonLongSerializer.class)
	</#if>
	@ApiModelProperty(value="${d.remark}",name="${d.colName}")
	private ${d.colType} ${d.colName};
	</#list>
	
	public ${tableName}() {
		
	}

}